-- GENERATED SPELL FOR [Weldon Barov] --


function spell0_11023(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11023', 668, 1)
end

function spell1_11023(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(16244,pUnit)
pUnit:RegisterEvent('Sorts_11023', 30298, 1)
end

function spell2_11023(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11023', 10293, 1)
end

function spell3_11023(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11023', 653, 1)
end

function Sorts_11023(pUnit, Event)
local choix_sorts_11023 = math.random(0, 3)
if choix_sorts_11023 == 0 then
pUnit:RegisterEvent('spell0_11023', 1, 1)
end
if choix_sorts_11023 == 1 then
pUnit:RegisterEvent('spell1_11023', 1, 1)
end
if choix_sorts_11023 == 2 then
pUnit:RegisterEvent('spell2_11023', 1, 1)
end
if choix_sorts_11023 == 3 then
pUnit:RegisterEvent('spell3_11023', 1, 1)
end
end

function mob11023_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11023', math.random(1500, 3000), 1)
end

function mob11023_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11023_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11023_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11023, 1, 'mob11023_Action')
RegisterUnitEvent(11023, 2, 'mob11023_Leave')
RegisterUnitEvent(11023, 3, 'mob11023_Kill')
RegisterUnitEvent(11023, 4, 'mob11023_Die')
